#include "Stack.h"

int main()
{
	Stack st;
	StackInit(&st);
	StackPush(&st, 1);
	StackPush(&st, 2);
	printf("%d ", StackTop(&st));
	StackPop(&st);
	StackPush(&st, 3);
	StackPush(&st, 4);
	StackPush(&st, 5);
	printf("%d ", StackTop(&st));
	StackPop(&st);
	StackPush(&st, 6);
	StackPush(&st, 7);
	printf("%d ", StackSize(&st));
	
	
	while (!StackEmpty(&st))
	{
		printf("%d ", StackTop(&st));
		StackPop(&st);
	}
	
	printf("\n%d", StackEmpty(&st));

	StackDestroy(&st);
	//printf("\n%d", StackEmpty(&st));
	StackPush(&st, 7);

	return 0;
}